Skip to content

Merge dependency bumps and add theme backgroundColor support#47

Merged
mikemilla merged 6 commits intomainfrom
cursor/merge-prs-add-background-color-b765
May 7, 2026
Merged

Merge dependency bumps and add theme backgroundColor support#47
mikemilla merged 6 commits intomainfrom
cursor/merge-prs-add-background-color-b765

Conversation

@mikemilla
Copy link
Copy Markdown
Collaborator

Summary

This PR merges two dependency bump PRs and adds support for setting a background color in the inbox and preferences themes.

Merged PRs

New Feature: Theme Background Color

Adds a backgroundColor property to both CourierInboxTheme and CourierPreferencesTheme, allowing users to set a custom background color for these views through the theme system.

TypeScript

const theme: CourierInboxTheme = {
  backgroundColor: '#FFFFFF',
  // ...other theme properties
};

Implementation Details

  • Android: Passes backgroundColor directly to the native CourierInboxTheme and CourierPreferencesTheme constructors (supported in courier-android 5.3.1)
  • iOS: Applies the background color directly on the native UIView since the Courier_iOS SDK theme constructors don't include this property. Respects the current light/dark user interface style.

Changes

  • src/models/CourierInboxTheme.tsx — Added backgroundColor?: string
  • src/models/CourierPreferencesTheme.tsx — Added backgroundColor?: string
  • ios/CourierInboxReactNativeManager.swift — Apply background color on the view
  • ios/CourierPreferencesReactNativeManager.swift — Apply background color on the view
  • android/.../CourierInboxViewManager.kt — Pass backgroundColor to theme constructor
  • android/.../CourierPreferencesViewManager.kt — Pass backgroundColor to theme constructor
  • example/ — Updated styled examples to demonstrate backgroundColor usage
Open in Web Open in Cursor 

courier-ios-automation[bot] and others added 5 commits May 7, 2026 20:51
….1' of https://github.com/trycourier/courier-react-native into cursor/merge-prs-add-background-color-b765

Co-authored-by: Mike Miller <mike@mikemiller.design>
- Add backgroundColor property to CourierInboxTheme and CourierPreferencesTheme TypeScript interfaces
- Pass backgroundColor to native Android CourierInboxTheme and CourierPreferencesTheme constructors
- Apply backgroundColor on iOS views based on current user interface style (light/dark)
- Update example app to demonstrate backgroundColor usage in styled inbox and preferences

Co-authored-by: Mike Miller <mike@mikemiller.design>
@mikemilla mikemilla marked this pull request as ready for review May 7, 2026 21:26
@mikemilla mikemilla merged commit 70cc376 into main May 7, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants